package Shared;


public class Doctor extends User {
	public String treating;

	public Doctor(String division, String name, String pass, String treating, String salt) {
		this(division + "|" + name + "|" + pass + "|" + salt + "|" + userID.DOCTOR + "|" + treating);
	}
	
	public Doctor(String doctor){
		super(doctor);
		String[] split = doctor.split("\\|");
		this.id = userID.DOCTOR;
		treating = split[5];
	}

	public String toString(){
		return super.toString() + "|" + treating;
	}
}
